package com.example.helloworld;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;

import com.example.helloworld.util.ActivityUtil;
import com.example.helloworld.view.DraggableViewSet;

public class UseDraggableViewSet extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_use_draggable_view_set);
		
		DraggableViewSet viewSet = (DraggableViewSet)findViewById(R.id.drg_sample);
		Bitmap rear = BitmapFactory.decodeResource(this.getResources(), R.drawable.system_architecture);
		
		ActivityUtil.debug("UseDraggableViewSet.onCreate", "view size [%d]-[%d]", viewSet.getWidth(), viewSet.getHeight());
		viewSet.setRearBitmap(rear);
	}

}
